'use strict';

function get_integer_interval(number_a, number_b){
  var result=new Array();
  if(number_a<number_b){
    for(var n=number_a;n<=number_b;n++){
    result.push(n);}
  }
  else if(number_a>number_b){
    for(var n=number_a;n>=number_b;n--){
    result.push(n);}
  }
  else{
    result.push(number_a);
  }return result;
}

module.exports = get_integer_interval;

